package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author learner
 * @Create 2023/12/21 19:04
 * @Version 1.0
 */
@FeignClient(value = "gulimall-product")
public interface SkuInfoFeignService {
    
    /**
     * 信息 
     * /product/skuinfo/info/{{skuId}}
     * 如果@FeignClient(value = "gulimall-product") 则代表给我的product服务发送请求
     * @FeignClient(value = "gulimall-gateway") 则表示给我们的网关发送请求由网关路由到不同的服务
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);
    
}
